﻿<Window x:Class="WcfCGServicesHost.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="WCF Client Generator Host" 
        Height="160" Width="320" 
        ResizeMode="NoResize"
        WindowStartupLocation="CenterScreen">
    <Window.Resources>
        <Storyboard 
            x:Key="progressStoryboard">
            <DoubleAnimation 
                Storyboard.TargetName="imgProgressTransform"
                Storyboard.TargetProperty="Angle" 
                From="0" To="360" Duration="0:0:2" 
                RepeatBehavior="Forever" />
        </Storyboard>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <StackPanel
            Grid.Row="0"
            Orientation="Horizontal">
            <Image
                x:Name="imgProgress"
                Source="/WcfCGServicesHost;component/Resources/idle.png" 
                Height="48" Width="48" 
                Margin="7" 
                VerticalAlignment="Center">
                <Image.RenderTransform>
                    <RotateTransform 
                        x:Name="imgProgressTransform"
                        CenterX="24"
                        CenterY="24"/>
                </Image.RenderTransform>
            </Image>
            <TextBlock
                    x:Name="txtMessage"
                    Grid.Column="1"
                    Text="Not in use"
                    VerticalAlignment="Center"
                    Margin="7" FontSize="12" />
        </StackPanel>
        <Button x:Name="btnExit"
                Grid.Row="1"
                Content="Exit"
                MinWidth="50"
                VerticalAlignment="Bottom"
                HorizontalAlignment="Right"
                Margin="7" />
    </Grid>
</Window>
